#ifndef H_AUDIOMNGER
#define H_AUDIOMNGER

#include "AudioObj.h"
class AudioMnger{
    private:
        bool isPlaying;
        bool isRecording;
        int currentPos;     //playing pos
        AudioObj AudioFile;
        AudioObj CurrentComment;
        vector<AudioObj> commentList;
        vector<int> commentFrame;
        PaStream *inoutStream;
        boost::thread *playthrd;
        boost::thread *recordthrd;
    public:
        AudioMnger(string filename);
        ~AudioMnger();

        void play();
        void _play();
        void record();
        void _record();
//        void addComment();
        void save(string filename);
};

#endif



        

